# 按此顺序编译

$packages = @(
    "@dogeui/ziutils",
    "@dogeui/zihooks",
    "@dogeui/zicons",
    "@dogeui/ziui",
    "@dogeui/ziapifor3d"
)

$rootDir = Resolve-Path ($PSScriptRoot + "/../")

function build($packages) {
    Push-Location
    Set-Location "${rootDir}packages\$package"
    . pnpm build
    Pop-Location
}

function buildAll() {
    foreach ($package in $packages) {
        build($package)
    }
}

buildAll
